package vivo;

/**
 * 一维消消乐 输入 1 4 2 2 3 3 2 4 1 输出21
 * Created by JiaJia on 2019/9/12 0012.
 */
public class Vivo091103 {
    public static void main(String[] args) {
        int[] num=new int[]{1,4,2,2,3,3,2,4,1};
        System.out.println();
    }
    private static int result=0;
    private static int xiaoxiaole(int[] num,int result){
        int n=num.length;
        int sequence=0;
        for (int i = 0; i <n-1 ; i++) {
            if (num[i]==num[i+1]){
                sequence++;
            }
        }
        return result;
    }
}